<script>
    //1 使用`符号实现换行
    let str1 = `hello,
        es6 demo up!`
    //console.log(str1)

    //2 在`符号里面使用表达式获取变量值
    let name = "Mike"
    let age = 20

    let str2 = `hello,${name},age is ${age+1}`
    //console.log(str2)

    //3 在`符号调用方法
    function f1() {
        return "hello f1"
    }

    let str3 = `demo, ${f1()}`
    console.log(str3)
    //----------------------------------------------------------------------------------

    let str2_1 = `hello everyone , I wish you have a good day
    enjoy everyday,whether something bad happen,just do it ,
    everything will be ok`

    console.log(str2_1)
    //----------------------------------------------------------------------------------

    let str2_name = "hello"
    let str2_age = "age"

    let str2_2 = `hello,${str2_name},age is ${str2_age+1}`

    let str2_2_1 = "hello,${str2_name},age is ${str2_age+1}"//这样子打印出来的不是定义的内容，而是单纯的字符串了

    console.log("first:"+str2_2)
    console.log("second:"+str2_2_1)
    //----------------------------------------------------------------------------------

    //3 在`符号调用方法
    function f2() {
        return "hello f2"
    }

    let str2_3 = `demo, ${f2()}`
    console.log(str2_3)





</script>